Start using NSInteger and NSUInteger
authorKristian Rietveld <kris@gtk.org>
Sun, 27 Dec 2009 16:01:25 +0000 (17:01 +0100)
committerKristian Rietveld <kris@gtk.org>
Sun, 27 Dec 2009 18:28:56 +0000 (19:28 +0100)
commitb2b70e5a8d275c8412709c9f077fb136078cd416
tree962cb342a347adf3216909f20cfd82f362e7af5d
parent9d1e7b2146a0343210eb734ba2aa2b72f0a2ff24
Start using NSInteger and NSUInteger

These have been introduced in Leopard and default to int and unsigned int.
In 64-bit Snow Leopard they are long and unsigned long.  This caused issues
with the getRectsBeingDrawn message which needs a pointer to a NSInteger
(long on 64-bit!) but we passed in an integer.  Surprisingly this problem
was visible when compiling with -O0 (segfault), but *not* when compiling
with -O1.  Other messages were NSInteger is now needed have also been
adapted.

Since NSInteger and NSUInteger are not available on Tiger, a define
has been added to add typedefs for these when they have not been defined
by the system headers.
gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkcursor-quartz.c
gdk/quartz/gdkevents-quartz.c
gdk/quartz/gdkwindow-quartz.c
gdk/quartz/gdkwindow-quartz.h